package com.googlecode.sftpant;

import java.util.Vector;

import me.kolovos.sftpant.DirCommand;

public class LsCommand extends DirCommand {
	
	@Override
	public void execute() throws Exception {
		
		String dir = this.dir;
		if (dir == null) dir = channel.getHome();
		
		Vector<?> v = channel.ls(dir);
		for (Object o : v) {
			System.out.println(o);
		}
	}
	
}
